package com.woniuxy.hospital.controller;


import com.woniuxy.hospital.entity.HplScheduling;
import com.woniuxy.hospital.hplutils.ResponseEntity;
import com.woniuxy.hospital.mapper.HplSchedulingMapper;
import com.woniuxy.hospital.service.IHplSchedulingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2021-08-12
 */
@CrossOrigin
@Controller
@RequestMapping("/hpl-scheduling")
public class HplSchedulingController {

    @Autowired
    private IHplSchedulingService iHplSchedulingService;


    @ResponseBody
    @PostMapping("add")
    public ResponseEntity<?> add(@RequestBody HplScheduling hplScheduling){
        iHplSchedulingService.save(hplScheduling);
        return ResponseEntity.SUCCESS;
    }
}

